import request from './request'

interface DataType {
    type: 'lastweek' | 'week' | 'month'
}

// 统计数据
export function getBasicData () {
    return request.get('/home/data')
}

// 开户趋势
export function getClientTrend (data: DataType) {
    return request.get('/data/clientTrend', data)
}

// 加减保趋势
export function getAddOffTrend (data: DataType) {
    return request.get('/data/addOffTrend', data)
}

// 在保人数趋势
export function getPersonTrend (data: DataType) {
    return request.get('/data/personTrend', data)
}
